package com.chat.entry.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 好友申请状态枚举
 */
@Getter
public enum FriendStatusEnum {
    PENDING(0, "待验证"),
    AGREED(1, "已同意"),
    REFUSED(2, "已拒绝");

    @EnumValue   // ✅ 标记这个字段作为存储到数据库的值
    private final int code;
    private final String desc;

    FriendStatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}